Skip to content

feat: Update FastembedRanker to auto call warm_up on first run#2834

Merged
bogdankostic merged 8 commits into
mainfrom
fastembed-ranker-warmup
Feb 13, 2026
Merged

feat: Update FastembedRanker to auto call warm_up on first run#2834
bogdankostic merged 8 commits into
mainfrom
fastembed-ranker-warmup

Conversation

@bogdankostic
Copy link
Copy Markdown
Contributor

@bogdankostic bogdankostic commented Feb 12, 2026

Related Issues

Proposed Changes:

How did you test it?

I added unit tests for all FastEmbed components to test if warm_up is called on the first run.

Notes for the reviewer

Checklist

@bogdankostic bogdankostic requested a review from a team as a code owner February 12, 2026 15:31
@bogdankostic bogdankostic requested review from julian-risch and removed request for a team February 12, 2026 15:31
@github-actions github-actions Bot added the type:documentation Improvements or additions to documentation label Feb 12, 2026
Copy link
Copy Markdown
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks quite good to me already. Let's also remove the explicit warm_up calls from the integration tests.
Could you please also open an issue or a directly a PR for removing warm_up from the code examples in the docs pages?

Comment thread integrations/fastembed/tests/test_fastembed_ranker.py Outdated
Comment thread integrations/fastembed/tests/test_fastembed_sparse_document_embedder.py Outdated
Comment thread integrations/fastembed/tests/test_fastembed_sparse_document_embedder.py Outdated
Comment thread integrations/fastembed/tests/test_fastembed_sparse_text_embedder.py
Comment thread integrations/fastembed/tests/test_fastembed_sparse_text_embedder.py Outdated
Comment thread integrations/fastembed/tests/test_fastembed_text_embedder.py Outdated
@julian-risch
Copy link
Copy Markdown
Member

There already is an issue for tracking updating the integration pages: #2751

@bogdankostic
Copy link
Copy Markdown
Contributor Author

I removed the explicit warm_up calls from the integration tests and adapted the documentation in this PR: deepset-ai/haystack#10586

Copy link
Copy Markdown
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@bogdankostic bogdankostic merged commit 6f2332a into main Feb 13, 2026
11 checks passed
@bogdankostic bogdankostic deleted the fastembed-ranker-warmup branch February 13, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration:fastembed type:documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FastembedRanker doesn't automatically warm_up on first run

2 participants